﻿<cfsilent>
	<cfscript>

		event.setArg("pageTitle", "毕业生管理 - 毕业资格审核 - 学生明细");
		
		subjectId = event.getArg("SBJ");
		grade = event.getArg("GRD");
		studentId = event.getArg("STU");
		
		/* 读取专业信息 */
		sql = "SELECT sbj_short FROM t_subject WHERE sbj_id = :subjectId ";
		
		queryObj = new Query( datasource=application.dnsSlave );
		queryObj.addParam( name="subjectId", value=subjectId, cfsqltype="cf_sql_varchar" );

		rs_subject = queryObj.execute( sql=sql ).getResult();
		

		currentTab = event.getArg("TabID", "labReview");
		
		passArgs = structNew();
		structInsert( passArgs, "SBJ", subjectId, true );
		structInsert( passArgs, "GRD", grade, true );
		
	</cfscript>
</cfsilent>

<div id="headArea">
	<div class="uiHeader uiHeaderWithImage ptm">
		<div class="clearfix uiHeaderTop">
			<div class="uiHeaderActions rfloat">
				<a class="uiButton" href="<cfoutput>#buildURL('gradStudentBySubject', passArgs)#</cfoutput>"><i class="mrs img btnPublish"></i><span class="uiButtonText"><cfoutput>#rs_subject.sbj_short#</cfoutput>-<cfoutput>#grade#</cfoutput> 级毕业生</span></a>
			</div>
			<div>
				<h2 class="uiHeaderTitle">
					<i class="uiHeaderImage img icon16x16 card"></i> 个人详细信息
				</h2>
			</div>
		</div>
	</div>
</div>

<div class="UIElement">
	<ul class="senateFirstPage">
		<li>
			<div class="clearfix" id="welcome">
				<div class="UItab">
					<div class="tabLables">
						<span <cfif currentTab eq "labProfile">class="active"</cfif> id="labProfile" tabTarget="Profile">学籍档案</span>
						<span <cfif currentTab eq "labReview">class="active"</cfif> id="labReview" tabTarget="Review">审核结果</span>
						<span <cfif currentTab eq "labMark">class="active"</cfif> id="labMark" tabTarget="Mark">各项成绩分类统计</span>
						<span <cfif currentTab eq "labReplaced">class="active"</cfif> id="labReplaced" tabTarget="Replaced">课程及成绩替代</span>
					</div>
				</div>
				<script language="javascript" type="text/javascript">
					//<![CDATA[
					<!--
					$(document).ready(function() {
						
						/* init Tab */
						$("div.tabContent").hide();
						$("div#" + $("div.tabLables span.active").attr("tabTarget")).show();
						
						$("div.tabLables > span").click(function(){
							var $targetID = $(this).attr("tabTarget");
							
							$("div.tabLables span").removeClass("active");
							$(this).addClass("active");
							
							$("div.tabContent").not('[id="' + $targetID + '"]').hide();
							$("div.tabContent#" + $targetID).show();
						});
						
					});
					
					// -->
					//]]>
				</script>
				
				<div id="Profile" class="tabContent">

					<!--- 显示学生学籍档案 --->
					<!-- studentProfile -->
					<cfoutput>#event.getArg("studentProfile")#</cfoutput>
					<!-- /studentProfile -->

				</div>
				
				
				<div id="Review" class="tabContent">

					<!--- 显示学生毕业审核结果 --->
					<!-- studentReview -->
					<cfoutput>#event.getArg("studentReview")#</cfoutput>
					<!-- /studentReview -->

				</div>
				
				<div id="Mark" class="tabContent">

					<!--- 显示学生课程修读情况 --->
					<!-- studentMark -->
					<cfoutput>#event.getArg("studentMark")#</cfoutput>
					<!-- /studentMark -->

				</div>

				<div id="Replaced" class="tabContent">

					<!--- 显示学生 课程 或 成绩 替代关系情况 --->
					<!-- studentMarkCourseReplaced -->
					<cfoutput>#event.getArg("studentMarkCourseReplaced")#</cfoutput>
					<!-- /studentMarkCourseReplaced -->

				</div>
				
				
			</div>
		</li>
	</ul>
</div>